package sal.demo;

import java.io.IOException;

import org.kramaframework.panel.TGlobalPanel;
import org.kramaframework.tag.widget.TLabel;
import org.kramaframework.view.TAjaxView;




public class ViewAjax extends TAjaxView {

	public String onAjax(Object obj) throws IOException,
	IllegalArgumentException {
		
		TGlobalPanel panel = new TGlobalPanel("mondiv3", "kramaAjax");
		
//		TSimpleText label = new TSimpleText("malabel3", "monId");
//		label.setSize("50px");
//		label.setColor(TColor.BLUE);
//		label.setDrag(true);
//		Operation t = (Operation) (obj);
//		
//		label.setText(String.valueOf(t.getResultat()));

		//panel.add(label);
		
		TLabel label = new TLabel("label22", "bel22");
		label.setText("ma ssss");
		label.setSize(4);
		
		panel.add(label);
		return panel.getAjaxData();
	}
}
